package com.yuandian.ops.workbench.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

/**
 * <p>
 * 业务告警表 根据业务告警阈值配置产生告警Vo
 * <p>
 *
 * @author lijunhang
 * @date 2021/7/7
 * @since 1.0.0
 */
@Data
@HeadRowHeight(30)
public class BusiStatusAlarmVo {

    /**
     * 自增ID
     */
    @ExcelIgnore
    private String id;

    /**
     * Excel 序号
     */
    private Integer index;

    /**
     * 系统ID
     */
    @ExcelIgnore
    private int systemId;

    /**
     * 系统名称
     */
    @ExcelIgnore
    private String systemName;

    @ExcelIgnore
    private String alarmIndicatorCode;

    @ExcelIgnore
    private String groupId;

    /**
     * 业务编码
     */
    @ExcelIgnore
    private String businessCode;


    /**
     * 业务名称
     */
    @ExcelIgnore
    private String businessName;

    /**
     * 所属周期
     */
    @ColumnWidth(20)
    @ExcelProperty("告警时间")
    private String cycleTime;

    /**
     * 访问量
     */
    @ColumnWidth(20)
    @ExcelProperty("总访问量")
    private int count;

    /**
     * 告警访问量
     */
    @ColumnWidth(20)
    @ExcelProperty("告警访问量")
    private int alarmCount;

    /**
     * 失败访问量
     */
    @ColumnWidth(20)
    @ExcelProperty("失败访问量")
    private int failCount;

    /**
     * 失败率
     */
    @ColumnWidth(20)
    @ExcelProperty("失败率")
    private String failRate;

    /**
     * '告警类型，1:正常告警 2:低密度归并告警'
     */
    @ExcelIgnore
    private Integer alarmType;

    /**
     * 告警类型Str
     */
    @ExcelIgnore
    private String alarmTypeStr;

    @ExcelIgnore
    private String startTime;

    @ExcelIgnore
    private String endTime;

    @ExcelIgnore
    private int dataType;
}
